package com.xkdx.guangguang.fragment.shop.brandofshop;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class BrandSearchAction extends AbsAction {
	String shopID, keyWord,type;

	public BrandSearchAction(String shopID, String keyWord,String type) {
		this.url=IConstants.INFO_URL;
		this.shopID = shopID;
		this.keyWord = keyWord;
		this.type=type;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("Type", type);
		map.put("ShopID", shopID);
		map.put("Keyword", keyWord);
		String json = constructJson(map);
		Parameter parameter = new Parameter("searchChapterAction",
				"searchListGet", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);
	}

}
